package org.example;

import org.example.sample.config.Config;
import org.example.sample.service.UserService;
import org.example.spring.context.MyAnnotationConfigApplicationContext;
import org.example.spring.context.MyApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        MyApplicationContext context = new MyAnnotationConfigApplicationContext(Config.class);

        UserService userService = context.getBean("userService", UserService.class);
        System.out.println(userService);
        userService.sendSms();


    }
}
